﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WLMes.Models
{
    /// <summary>
    /// 输入参数
    /// </summary>
    public class RUN_MODE_request
    {
        /// <summary>
        /// 请求编号
        /// </summary>
        public string RequestCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 请求（操作）时间
        /// </summary>
        public string RequestTime { get; set; }
        /// <summary>
        /// 产线或设备标识
        /// </summary>
        public int LineOrEquipment { get; set; }
        /// <summary>
        /// 设备ID
        /// </summary>
        public string EquipmentID { get; set; }
        /// <summary>
        /// 运行模式
        /// </summary>
        public List<RunningModeSets> RunningModeSets { get; set; } = new List<RunningModeSets>();
        /// <summary>
        /// 自定义运行模式
        /// </summary>
        public List<CustomizeRunningModeSets> CustomizeRunningModeSets { get; set; } = new List<CustomizeRunningModeSets>();
        /// <summary>
        /// 运行模式对应的实际采集时间
        /// </summary>
        public string CollectTime { get; set; }

    }
    /// <summary>
    /// 运行模式
    /// </summary>
    public class RunningModeSets
    {
        /// <summary>
        /// 运行模式ID
        /// </summary>
        public string RunningModeID { get; set; }
        /// <summary>
        /// 运行模式值
        /// </summary>
        public bool RunningModeValue { get; set; }

    }

    /// <summary>
    /// 自定义运行模式
    /// </summary>
    public class CustomizeRunningModeSets
    {
        /// <summary>
        /// 自定义运行模式ID
        /// </summary>
        public string CustomizeRunningModeID { get; set; }
        /// <summary>
        /// 自定义运行模式名称
        /// </summary>
        public string CustomizeRunningModeName { get; set; }
        /// <summary>
        /// 自定义运行模式值
        /// </summary>

        public bool CustomizeRunningModeValue { get; set; }
    }

    /// <summary>
    /// 回传数据
    /// 返回信息
    /// </summary>
    public class RUN_MODE_response
    {
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 描述信息
        /// </summary>
        public string EventDescription { get; set; }

    }
}
